package com.nian.trancation.tc.a;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/15 0015 11:19
 */
@EnableDistributedTransaction
@EnableHystrix
@EnableCircuitBreaker
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.nian.trancation.tc.b.api"})
@SpringBootApplication(scanBasePackages = {"com.nian.trancation.tc.a", "com.nian.trancation.tc.b.api"})
public class NianTranscationTcAApplication {

    public static void main(String[] args) {
        SpringApplication.run(NianTranscationTcAApplication.class, args);
    }
}
